package com.xxx.mch.service;

import com.github.pagehelper.PageInfo;
import com.xxx.mch.domain.dto.TaskScoreTemplateDto;
import com.xxx.mch.domain.po.TaskScore;
import com.xxx.mch.domain.request.CreateScoreRequest;
import com.xxx.mch.domain.request.QueryScoreRequest;
import com.xxx.mch.domain.request.RuleSearchRequest;
import com.xxx.mch.domain.request.TaskScoreTemplateRequest;

import java.util.List;

/**
 * @author FengHaixin
 * @description 一句话描述该文件的用途
 * @date 2020-02-25
 */
public interface TaskScoreService
{
    void createScoreRecord(CreateScoreRequest scoreRequest);

    PageInfo<TaskScore> queryScoreRecord(QueryScoreRequest queryScoreRequest);


    List<TaskScore> queryTaskTypes(QueryScoreRequest queryScoreRequest);


    void createOrUpdateTemplate(List<TaskScoreTemplateRequest> templateRequest);


    void deleteTemplate(Integer templateId);


    List<TaskScoreTemplateDto> getTaskTemplate(List<Integer> parentId, Integer depth, Boolean status, Boolean showHeader);


    List<TaskScoreTemplateDto> ruleSearch(RuleSearchRequest ruleSearchRequest);


    List<TaskScoreTemplateDto> ruleQuery(Integer type);
}
